package com.ideal.frame.node.form.search;

import lombok.Data;

import java.util.Date;

/**
 * @author: zhangdelei
 * @date: 2021/9/14-3:47 下午
 * @Description:
 **/
@Data
public class RootNodeSyncParams {
    private Date syncTime;

    private RootNodeSyncParams(Builder builder) {
        syncTime = builder.syncTime;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder copy(RootNodeSyncParams src) {
        Builder builder = new Builder();
        builder.syncTime = src.syncTime;
        return builder;
    }

    public static class Builder {
        private Date syncTime;

        private Builder() {
        }

        public Builder syncTime(Date syncTime) {
            this.syncTime = syncTime;
            return this;
        }

        public RootNodeSyncParams build() {
            return new RootNodeSyncParams(this);
        }
    }
}
